from flask import Blueprint, request
from conn_mysql import ConnectMysql
from .access_token_notify import access_token_verify_func


app_dirver = Blueprint('app_dirver', 'api')

@app_dirver.route('/app_dirver')
def dirver():

    sql = "SELECT * FROM dirver"
    with ConnectMysql() as c:

        result = c.select_all(sql)
    
    return {
        'status' : 1,
        'errorCode': None,
        'errorMsg': None,
        'resultBody': result,
    }

